Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Managing Quaternions


Q3Vector3D_TransformQuaternion

You can use the Q3Vector3D_TransformQuaternion function to transform a vector by a quaternion.

TQ3Vector3D *Q3Vector3D_TransformQuaternion (
const TQ3Vector3D *vector, 
const TQ3Quaternion *quaternion, 
TQ3Vector3D *result);
vector
A three-dimensional vector.
quaternion
A quaternion.
result
On exit, a three-dimensional vector that is the result of transforming the specified vector by the specified quaternion.
DESCRIPTION
The Q3Vector3D_TransformQuaternion function returns, as its function result and in the result parameter, a three-dimensional vector that is the result of transforming the vector specified by the vector parameter using the quaternion specified by the quaternion parameter.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996